﻿<Window x:Class="P2PChat.Client.UI.WinMain"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="WinMain" Height="480" Width="320" 
        xmlns:my="clr-namespace:P2PChat.Client.UI" 
        MinWidth="320" 
        MinHeight="480" 
        Loaded="window_Load"  
        Closing="Window_Closing">
    <Grid>
        <Menu Height="23" HorizontalAlignment="Stretch" Name="menu1" VerticalAlignment="Top" Background="#0000FF00">
            <MenuItem Header="程序" Name="menu_Program">
                <MenuItem Header="个人资料" Name="menu_PersonalInfo" />
                <Separator />
                <MenuItem Header="注销" Name="menu_Logout" />
                <MenuItem Header="退出" Name="menu_Exit" Click="menu_Exit_Click" />
            </MenuItem>
            <MenuItem Header="联系人" Name="menu_Contact" Click="menu_Contact_Click" />
            <MenuItem Header="消息" Name="menu_Message" Click="menu_Message_Click" />
            <MenuItem Header="设置" Name="menu_Preferences" Click="menu_Preferences_Click" />
        </Menu>
        <Rectangle Height="72" HorizontalAlignment="Stretch" Margin="5,26" Name="rectangle1" VerticalAlignment="Top" Width="Auto" RenderTransformOrigin="0,0" RadiusX="4" RadiusY="4" Panel.ZIndex="-1">
            <Rectangle.Stroke>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="White" Offset="0" />
                    <GradientStop Color="#FF7FFF7F" Offset="1" />
                </LinearGradientBrush>
            </Rectangle.Stroke>
            <Rectangle.Fill>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="Honeydew" Offset="1" />
                    <GradientStop Color="White" Offset="0" />
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>
        <Image Height="56" HorizontalAlignment="Left" Margin="12,35,0,0" Name="img_Protrait" Stretch="Fill" VerticalAlignment="Top" Width="56" />
        <Label Content="这里显示姓名" Height="30" HorizontalAlignment="Stretch" Margin="74,61,79,0" Name="label_Name" VerticalAlignment="Top" FontWeight="Bold" FontSize="16" />
        <ComboBox Height="23" HorizontalAlignment="Right" Margin="0,68,12,0" Name="combo_State" VerticalAlignment="Top" Width="61" Background="{x:Null}" BorderBrush="{x:Null}" ItemsSource="{Binding}" SelectedIndex="0" BorderThickness="0,0,0,1" IsReadOnly="True">
            <ComboBoxItem Content="在线" IsSelected="True" />
            <ComboBoxItem Content="离开" />
            <ComboBoxItem Content="勿扰" />
            <ComboBoxItem Content="隐身" />
            <ComboBoxItem Content="离线" />
        </ComboBox>
        <Rectangle HorizontalAlignment="Stretch" Margin="12,97,12,43" Name="rectangle2" Stroke="#FF7FFF7F" VerticalAlignment="Stretch" Panel.ZIndex="-2">
            <Rectangle.Fill>
                <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                    <GradientStop Color="#FFF2FFF2" Offset="0" />
                    <GradientStop Color="White" Offset="0.493" />
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>
        <Rectangle HorizontalAlignment="Stretch" Margin="-10,0,-10,-9" Name="rectangle3" Stroke="#7F7FFF7F" VerticalAlignment="Bottom" Panel.ZIndex="-1" Height="78">
            <Rectangle.Fill>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFE1FFE1" Offset="0" />
                    <GradientStop Color="White" Offset="1" />
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>
        <Button Content="添加好友" Height="23" HorizontalAlignment="Left" Margin="12,0,0,40" Name="btn_AddFriend" VerticalAlignment="Bottom" Width="207" Background="{x:Null}" Foreground="Black" Click="btn_AddFriend_Click">
            <Button.BorderBrush>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#0000FF00" Offset="0.009" />
                    <GradientStop Color="#3000FF00" Offset="1" />
                </LinearGradientBrush>
            </Button.BorderBrush>
        </Button>
        <ScrollViewer HorizontalAlignment="Stretch" Margin="12,120,12,70" Name="scrollViewer1" VerticalAlignment="Stretch" Width="Auto" VerticalScrollBarVisibility="Auto">
            <StackPanel Height="Auto" Name="panel_FriendList" Width="Auto" />
        </ScrollViewer>
        <my:SearchBox Height="23" HorizontalAlignment="Stretch" Margin="12,98,12,0" x:Name="ui_Search" VerticalAlignment="Top" OnTextChanged="ui_Search_OnTextChanged" />
    </Grid>
</Window>
